who invented first petrol engine